/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo03;
import java.util.ArrayList;
import java.util.List;


/**
 *
 * @author Administrator
 */
public class NewWork01Text {
    public static void main(String[] args) {
      NewWork01 p1 = new NewWork01("张三","2112223","南宁");
      NewWork01 p2 = new NewWork01("李四","2321312","桂林");
      NewWork01 p3 = new NewWork01("王五","1234567","柳州");
  
    List list = new ArrayList();
    list.add(p1);
    list.add(p2);
    list.add(p3);
    
        System.out.println("ArrayList元素为:");
        System.out.println(list);
    
    
    
    
    
}
}
